package com.scm.biz.service._impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.scm.biz.bean.Constant;
import com.scm.biz.dao.ConstantDao;
import com.scm.biz.service.ConstantService;

@Service
public class ConstantServiceImpl implements ConstantService {
	
	@Resource
	private ConstantDao constantDao;

	public ConstantServiceImpl() {
		
	}

	@Override
	public List<Constant> getConstantByCategory(String category) {
		
		return constantDao.selectByCategory(category);
		
	}

	@Override
	public List<String> getConstantNameByQuery(String name, String category) {
		return constantDao.selectNameByQuery(name, category);
	}

}
